package c.j.a.d.b.g;

import android.text.TextUtils;
import android.util.Log;

/* compiled from: Logger */
public class a {
    public static int a = 4;

    public static void a(String str, String str2) {
        if (a <= 2) {
            Log.v(str, str2);
        }
    }

    public static boolean b() {
        return a <= 3;
    }

    public static String c(String str) {
        return !TextUtils.isEmpty(str) ? c.b.a.a.a.D("Downloader-", str) : "DownloaderLogger";
    }

    public static void d(String str, String str2) {
        if (str2 != null && a <= 3) {
            Log.d(c(str), str2);
        }
    }

    public static void e(String str, String str2) {
        if (str2 != null && a <= 4) {
            Log.i(c(str), str2);
        }
    }

    public static void f(String str, String str2) {
        if (str2 != null && a <= 5) {
            Log.w(c(str), str2);
        }
    }

    public static void g(String str, String str2) {
        if (str2 != null && a <= 6) {
            Log.e(c(str), str2);
        }
    }
}
